from django.db import models

# Create your models here.

class Funkspruch(models.Model):
    date = models.DateTimeField('datum', auto_now_add=True)
    fromOp = models.CharField('sender', max_length=30) # Op = radio operator
    toOp = models.CharField('empfänger', max_length=30)
    message = models.CharField('inhalt', max_length=250)

    class Meta:
        ordering = ["-date"]
        verbose_name = "Funkspruch"
        verbose_name_plural = "Funksprüche"

    def __str__(self):
        return self.message


